using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dominio;

public partial class ApplicationMasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        UserName.Text = ((User)Session["user"]).Name;
        UserRole.Text = ((User)Session["user"]).Role.Description;
    }
    protected void bugList_Click(object sender, EventArgs e)
    {
        Response.Redirect("BugListPage.aspx");
    }
    protected void releaseList_Click(object sender, EventArgs e)
    {
        Response.Redirect("ReleaseListPage.aspx");
    }
    protected void logOutLink_Click(object sender, EventArgs e)
    {
        Session.RemoveAll();
        Response.Redirect("LogIn.aspx");
    }
    protected void myAccount_Click(object sender, EventArgs e)
    {
        Response.Redirect("myAccountPage.aspx");
    }
    protected void homelink_Click(object sender, EventArgs e)
    {
        Response.Redirect(((User)Session["user"]).Role.Home);
    }
}
